﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IHISCETeim.DAL;
using IHISCETeim.Model;
using IHISCETeim.Library;
using System.Data;


namespace IHISCETeim.BLL
{
    public class PartsRankController: BaseController
    {
        public static int Add(PartsRankInfo obj)
        {
            return PartsRankDAL.Add(obj);
        }
        public static bool Delete(int RID)
        {
            return PartsRankDAL.Delete(RID);
        }
        public static PartsRankInfo GetList(int RID)
        {
            PartsRankInfo _obj= CBO.FillObject<PartsRankInfo>(PartsRankDAL.GetList(RID));
            if (_obj == null)
                _obj = new PartsRankInfo();
            return _obj;
        }
        public static DataTable GetPagination(string whereSql, int PageIndex, int PageSize, string Sort, ref int TotalCount)
        {
            return PartsRankDAL.GetPagination(whereSql, PageIndex, PageSize, Sort, ref TotalCount);
        }
        public static bool Update(PartsRankInfo obj)
        {
            return PartsRankDAL.Update(obj);
        }
    }
}
